package com.example.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.model.entity.UserInfo;
import com.example.model.dto.LoginRequest;
import com.example.model.dto.RegisterRequest;
import com.example.model.dto.AddTeacherRequest;

import java.util.List;

public interface UserService extends IService<UserInfo> {
    UserInfo login(LoginRequest loginRequest);
    
    UserInfo register(RegisterRequest registerRequest);
    
    UserInfo addTeacher(AddTeacherRequest addTeacherRequest);

    List<UserInfo> teacherList( );

    /**
     * 老师获取所有学生信息
     * @return
     */
    List<UserInfo> studentList();

    Boolean deleteTec(UserInfo userInfo);
}